package com.wf.day_0615.decorators1;

public class CoffeeShop {
    public static void main(String[] args) {
        // 制作一个简单咖啡
        Coffee simpleCoffee = new SimpleCoffee();
        System.out.println("Cost: " + simpleCoffee.getCost() + "; Description: " + simpleCoffee.getDescription());

        // 加入牛奶的咖啡
        Coffee milkCoffee = new MilkDecorator(simpleCoffee);
        System.out.println("Cost: " + milkCoffee.getCost() + "; Description: " + milkCoffee.getDescription());

        // 加入牛奶和糖的咖啡
        Coffee milkSugarCoffee = new SugarDecorator(milkCoffee);
        System.out.println("Cost: " + milkSugarCoffee.getCost() + "; Description: " + milkSugarCoffee.getDescription());
    }
}
